INC = include
SRC = src
HDRS = $(INC)/class.h $(INC)/config.h $(INC)/dlvl.h $(INC)/draw.h $(INC)/item.h $(INC)/itemmanage.h $(INC)/monster.h $(INC)/monstermanage.h $(INC)/playermanage.h $(INC)/race.h $(INC)/rand.h $(INC)/talmud.h
SRCS = $(SRC)/class.c $(SRC)/config.c $(SRC)/dlvl.c $(SRC)/draw.c $(SRC)/item.c $(SRC)/itemmanage.c $(SRC)/monstermanage.c $(SRC)/playermanage.c $(SRC)/race.c $(SRC)/rand.c $(SRC)/talmud.c
CFLAGS = -Wall -g -I$(INC)
OPTIONS = -DBOUNDED_DUNGEONS -D_16COLOR -D_WIZARD
LDFLAGS = -lm

all: talmud

talmud: $(SRCS) $(HDRS)
	gcc -o $@ $(CFLAGS) $(OPTIONS) $(SRCS) $(LDFLAGS)

clean:
	rm -f talmud
